package com.example.gulimallmember.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimallmember.entity.MemberEntity;
import com.example.gulimallmember.exception.PhoneExistException;
import com.example.gulimallmember.exception.UsernameExistException;
import com.example.gulimallmember.vo.GiteeUserVo;
import com.example.gulimallmember.vo.MemberLoginVo;
import com.example.gulimallmember.vo.MemberRegistVo;

import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2024-01-11 15:13:01
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUsernameUnique(String username) throws UsernameExistException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(GiteeUserVo vo);
}

